#ifdef _WIN32
	#include "..\..\preproc.h"
	#include <windows.h>
#endif

#ifdef __linux__
	#include "../../preproc.h"
#endif

void __declspec (dllexport) add(int argc, string* args, gvars_t* gvars)
{
	int	i,
		res = (int) 0;

	for(i = 0; i < argc; i++)
		res += atoi(args[i]);

	printf("%d\n", res);

    gvars->result = ERROR;
}
